package com.pine.app.module.security.core.userdetails;


import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Set;

/**
 * @author xiaoyuan
 * @create 2019/8/2
 **/
public interface UserDetails extends Serializable {
    Set<String> getResources();

    Set<String> getRoles();

    @JsonIgnore
    String getPassword();

    String getUsername();

    boolean isAccountNonExpired();

    boolean isAccountNonLocked();

    boolean isCredentialsNonExpired();

    boolean isEnabled();

    String getId();
}